package musicstore.entity;

public class CartItem {
	private int albumId;
	private String albumTitle;
	private double unitPrice;
	private int qty;
	public int getAlbumId() {
		return albumId;
	}
	public void setAlbumId(int albumId) {
		this.albumId = albumId;
	}
	public String getAlbumTitle() {
		return albumTitle;
	}
	public void setAlbumTitle(String albumTitle) {
		this.albumTitle = albumTitle;
	}
	public double getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}
	public int getQty() {
		return qty;
	}
	public void setQty(int qty) {
		this.qty = qty;
	}
	public double getSubTotal(){
		return this.unitPrice*this.qty;
	}
	public CartItem(int albumId, String albumTitle, double unitPrice, int qty) {
		super();
		this.albumId = albumId;
		this.albumTitle = albumTitle;
		this.unitPrice = unitPrice;
		this.qty = qty;
	}
	public CartItem(){
		
	}
	
}
